"use strict";
const mvc = require("cosjs.mvc")
const timeFormat = mvc.library.require('time').format;
module.exports = function () {
    let debug = process.env.NODE_ENV === "production" ? 0 : 1;
    if (!debug) {
        return false;
    }
    var arr = Array.from(arguments);
    arr.unshift(timeFormat("yyyy-MM-dd hh:mm:ss"));
    for (var i = 0; i < arr.length; i++) {
        if (typeof arr[i] === 'object') {
            arr[i] = JSON.stringify(arr[i])
        }
    }
    console.log.apply(console, arr);
    return false;
}